import debounce from './debounce.js';
import clickpoint from './clickpoint.js';
import draggable from './draggable.js';

// 自定义指令
const directives = {
  debounce,
  clickpoint,
  draggable,
};

export default {
  install(Vue) {
    Object.keys(directives).forEach((key) => {
      Vue.directive(key, directives[key]);
    });
  },
};
